package cn.wolfcode.wolf2w.job.task;

import cn.wolfcode.wolf2w.business.api.RemoteNoteService;
import cn.wolfcode.wolf2w.business.api.RemoteStrategyService;
import cn.wolfcode.wolf2w.common.core.constant.SecurityConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;


@Component("TravelTask")
public class TravelTask {

    @Autowired
    private RemoteStrategyService remoteStrategyService;
    @Autowired
    private RemoteNoteService remoteNoteService;

    public void test(){

        String localeString = new Date().toLocaleString();
        System.out.println(localeString);

    }

    public void statisStrategyRank(){
       remoteStrategyService.statisRank(SecurityConstants.INNER);
    }

    public void statisStrategyCondition(){
        remoteStrategyService.statisCondition(SecurityConstants.INNER);
    }
    public void strategyStatisHashPersistence(){
        remoteStrategyService.strategyStatisHashPersistence(SecurityConstants.INNER);
    }

    public void noteStatisHashPersistence(){
        remoteNoteService.noteStatisHashPersistence(SecurityConstants.INNER);
    }

}
